package cn.tonyandmoney.baidu.asr.callback

import com.baidu.speech.EventListener

/**
 * Created by niantuo on 2018/2/8.
 * 可以跨进程
 */
class EventCallback(private val callback: com.baidu.speech.aidl.EventListener) : EventListener {
    override fun onEvent(name: String?, params: String?, data: ByteArray?, offset: Int, length: Int) {
        callback.onEvent(name.orEmpty(), params.orEmpty(), data ?: ByteArray(0), offset, length)
    }
}

